package net.heimeng.bphelper;

import androidx.annotation.NonNull;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class BPInfo {
    private final List<String> bannedHeroes; // 被禁用的英雄列表
    private final List<String> pickedHeroes; // 被选择的英雄列表

    public BPInfo() {
        bannedHeroes = new ArrayList<>();
        pickedHeroes = new ArrayList<>();
    }

    // 添加禁用英雄
    public void addBannedHero(String hero) {
        bannedHeroes.add(hero);
    }

    public void addBannedHero(String... heroes) {
        bannedHeroes.addAll(Arrays.asList(heroes));
    }

    // 添加选择英雄
    public void addPickedHero(String hero) {
        pickedHeroes.add(hero);
    }

    public void addPickedHero(String... heroes) {
        pickedHeroes.addAll(Arrays.asList(heroes));
    }

    // 获取禁用英雄列表
    public List<String> getBannedHeroes() {
        return bannedHeroes;
    }

    // 获取选择英雄列表
    public List<String> getPickedHeroes() {
        return pickedHeroes;
    }
    public void pickedClear(){
            pickedHeroes.clear();
    }
    @NonNull
    @Override
    public String toString() {
        return "禁用了" + bannedHeroes + "，选用了" + pickedHeroes;
    }
}